<template>
	<view class="home">
		 <CustomerHeaderBar></CustomerHeaderBar>
		 <view class="wrapper">
			 <!-- <TestInfo></TestInfo> -->
		 	<view class="infoModel">
		 		<view class="left">
		 			免费配送
		 		</view>
		 		<view class="right">
		 			<uni-icons type="shop" size="24"></uni-icons>
		 			<view class="des">
		 				我的订单
		 			</view>
		 		</view>
		 	</view>
			<view class="scrollLayout">
				<view class="left">
					<scroll-view class="lScroll" scroll-y>
						<view class="row" :class="item==1 ? 'active':''" v-for="item in 50">{{item}}</view>
					</scroll-view>
				</view>
				<view class="right">
					<view class="search">
						<uv-icon size="24" name="search"/>
						<view class="search_content">
							<input class="input_content" type="text" placeholder="搜索" />
						</view>
					</view>
					<scroll-view class="lScroll"  scroll-y>
						<view class="prductView" v-for="item in 5">
							<uv-sticky customNavHeight="0" zIndex="2">
								<view class="proTitle" >
									<view class="title">
										产品名称{{item}}
									</view>
								</view>
							</uv-sticky>
							
							<view class="productItem" v-for="item in 3">
								<ProductItem></ProductItem>
							</view>
						</view>
					</scroll-view>
				</view>
			</view>
		 </view>
		 <view style="height: 100rpx; background-color: aqua;">
		 	
		 </view>
	</view>
</template>

<script setup>
</script>

<style lang="scss" scoped>
	.home{
		height: 100vh;
		display: flex;
		flex-direction: column;
		.wrapper{
			background-color: #fff;
			flex: 1;
			border-radius: 40rpx 40rpx  0 0;
			overflow: hidden;
			margin-top: -40rpx;
			position: relative;
			overflow: hidden;
			.infoModel{
				height: 100rpx;
				padding: 0 30rpx;
				background-color: #fff;
				display: flex;
				justify-content: space-between;
				align-items: center;
				overflow: hidden;
				border-bottom: 1rpx solid #efefef;
				.right{
					@include flex-box();
				}
			}
			.scrollLayout{
				display: flex;
				height: calc(100% - 100rpx);
				.left{
					width: 200rpx;
					height: 100%;
					border-right: 1rpx solid #efefef;
					background-color: #efefef;
					.row{
						font-size: 30rpx;
						padding: 25rpx;
						line-height: 100rpx;
						color:$text-font-color-2 ;
						position: relative;
						&.active{
							color: #0d78ba;
							background-color: #fff;
							&::before{
								content: '';
								width: 5rpx;
								height: 30rpx;
								background-color: red;
								position: absolute;
								left: 0;
								top: calc(50% - 12.5rpx);
							}
						}
					}
				}
				.right{
					height: 100%;
					flex: 1;
					display: flex;
					position: relative;
					.search{
						height: 68rpx;
						display: flex;
						position: absolute;
						right: 0;
						top:0;
						z-index: 3;
						align-items: center;
						.search_content{
							display: flex;
							.input_content{
								width: 200rpx;
							}
						}
					}
					.prductView{
						.proTitle{
							background-color: #fff;
							height: 68rpx;
							display: flex;
							align-items: center;
						}
					}
				}
				.lScroll{
					height: 100%;
				}
			}
		}
	}
</style>
